/** Vue 常用指令 @author dongls */
import loadmore from './loadmore';
import tooltip from './tooltip'
import trim from './trim'
import onlyNumber from './onlyNumber';
import elSelectLoadmore from '@src/directive/elSelectLoadmore'
import user from './user'
import { trackDirective } from '../util/tracker/trackerDirective'
import resizeWidth from './resize-width'
import candrag from './candrag'
import tableStyle from './tableStyle'

const directives = {
  install(Vue, opts = {}){
    Vue.directive('loadmore', loadmore)
    Vue.directive('tooltip', tooltip)
    Vue.directive('trim', trim)
    Vue.directive('el-select-loadmore', elSelectLoadmore)
    Vue.directive('only-number', onlyNumber);
    Vue.directive('user', user)
    Vue.directive('resize-width', resizeWidth)
    Vue.directive('track', trackDirective)
    Vue.directive('candrag', candrag)
    Vue.directive('table-style', tableStyle);
  }
}

export default directives;